<!DOCTYPE html>
<html lang="en">
    <head>
        {include file="common/meta" /}

        <style type="text/css">
            body {
                color:#999;
                background:url('/assets/img/loginbg.jpg?v=12') no-repeat top center;
                /*background-size:cover;*/
            }
            a {
                color:#fff;
            }
            .login-panel{margin-top:150px;}
            .login-screen {
                max-width:400px;
                padding:0;
                margin:200px auto 0 auto;
            }
            .login-screen .well {
                border-radius: 3px;
                -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
                box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
                background: rgba(255,255,255, 0.2);
            }
            .login-screen .copyright {
                padding-bottom:50px;font-size:14px;color:#fff;text-align: center;
            }
            .captcha {
                width: 120px;
                height: 38px;
            }
            @media(max-width:767px) {
                .login-screen {
                    padding:0 10px;
                    margin-top: 120px;
                }
                .captcha {
                    width: 100px;
                }
            }
            @media (max-width: 320px) {
                .login-screen {
                    padding: 0 10px;
                    margin-top: 60px
                }
                .captcha {
                    width: 85px;
                }
            }
            /*.profile-img-card {
                width: 100px;
                height: 100px;
                margin: 10px auto;
                display: block;
                -moz-border-radius: 50%;
                -webkit-border-radius: 50%;
                border-radius: 50%;
            }
            .profile-name-card {
                text-align: center;
            }*/

            .lihua-logo{width:100%;}
            #login-form {
                margin-top:20px;
            }
            #login-form .input-group {
                margin-bottom:15px;
            }
            .input-group-lg .form-control {
                border-radius: 0;
            }
            .login-screen .copyright{color:#666;}
        </style>
    </head>
    <body>
        <div class="container">
            <div class="login-wrapper">
                <div class="login-screen">
                    <div class="well">
                        <div class="login-form">
                            <!--<img id="profile-img" class="profile-img-card" src="__CDN__/assets/img/avatar.png" />
                            <p id="profile-name" class="profile-name-card"></p>-->
                            <img class="lihua-logo" src="/assets/img/lihua.png" alt="丽华快餐">

                            <form action="" method="post" id="login-form">
                                <div id="errtips" class="hide"></div>
                                {:token()}
                                <div class="input-group input-group-lg">
                                    <div class="input-group-addon"><span class="glyphicon glyphicon-user" aria-hidden="true"></span></div>
                                    <input type="text" class="form-control" id="pd-form-username" placeholder="{:__('Username')}" name="username" autocomplete="off" value="" data-rule="{:__('Username')}:required;username" />
                                </div>

                                <div class="input-group input-group-lg">
                                    <div class="input-group-addon"><span class="glyphicon glyphicon-lock" aria-hidden="true"></span></div>
                                    <input type="password" class="form-control" id="pd-form-password" placeholder="{:__('Password')}" name="password" autocomplete="off" value="" data-rule="{:__('Password')}:required;password" />
                                </div>
                                {if $config.fastadmin.login_captcha}
                                <div class="input-group input-group-lg">
                                    <div class="input-group-addon"><span class="glyphicon glyphicon-option-horizontal" aria-hidden="true"></span></div>
                                    <input type="text" name="captcha" class="form-control" placeholder="{:__('Captcha')}" data-rule="{:__('Captcha')}:required;length(4)" />
                                    <span class="input-group-addon" style="padding:0;border:none;cursor:pointer;">
                                        <img class="captcha" src="{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha" onclick="this.src = '{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha&r=' + Math.random();"/>
                                    </span>
                                </div>
                                {/if}
                                <div class="form-group" style="color:#666;">
                                    <label class="inline" for="keeplogin">
                                        <input type="checkbox" name="keeplogin" id="keeplogin" value="1" />
                                        {:__('Keep login')}
                                    </label>
                                </div>
                                <div class="form-group">
                                    <button type="submit" class="btn btn-lg btn-block" style="background: #ff1b0a;color:#fff;">{:__('Sign in')}</button>
                                </div>
                            </form>
                        </div>
                    </div>
                    <p class="copyright">&copy; 2019 丽华快餐</p>
                </div>
            </div>
        </div>
        {include file="common/script" /}
    </body>
</html>